package com.hera.process.workflow.domain;

import java.io.Serializable;

import javax.persistence.*;

import com.hera.base.domain.BaseDomain;

import java.sql.Timestamp;


/**
 * The persistent class for the PROCESS_GROUP_USER database table.
 * 
 */
@Entity
@Table(name="PROCESS_GROUP_USER")
@NamedQuery(name="ProcessGroupUser.findAll", query="SELECT p FROM ProcessGroupUser p")
public class ProcessGroupUser extends BaseDomain implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private ProcessGroupUserPK id;

	@Column(name="USER_NAMES")
	private String userNames;

	//bi-directional many-to-one association to ProcessGroup
	@ManyToOne
	@JoinColumn(name="ID_PROCESS_GROUP", insertable=false, updatable=false)
	private ProcessGroup processGroup;

	public ProcessGroupUser() {
	}

	public ProcessGroupUserPK getId() {
		return this.id;
	}

	public void setId(ProcessGroupUserPK id) {
		this.id = id;
	}

	public String getUserNames() {
		return this.userNames;
	}

	public void setUserNames(String userNames) {
		this.userNames = userNames;
	}

	public ProcessGroup getProcessGroup() {
		return this.processGroup;
	}

	public void setProcessGroup(ProcessGroup processGroup) {
		this.processGroup = processGroup;
	}

}